<template>
    <div>
        <Header :title="t('home.Mine.customer')">
            <template #left>
                <van-icon name="arrow-left" color="#fff" size="25px" class="icon-left" @click="goBack()" />
            </template>
        </Header>
    </div>
</template>

<script setup>
import Header from "@/components/Header/index.vue";
import useLanguage from '@/hooks/useLanguage';
import { useRouter } from 'vue-router'
import { ref, onMounted } from 'vue'
const router = useRouter()
const { t } = useLanguage()
function goBack() {
    router.go(-1)
}


function handleBeforeCloseWindow() {
    goBack()
}

onMounted(() => {
    _MEIQIA('showPanel');
    _MEIQIA('beforeCloseWindow', handleBeforeCloseWindow);
})
</script>

<style lang="less" scoped>
.icon-left {
    margin-left: 10px;
}

</style>